package com.gdwstudy.polyParameter;

public class Tools {
    public double showEmpAnnual(Employee e){
        return e.getAnnual();
    }
    public void testEork(Employee e){
        if(e instanceof Worker){
            ((Worker) e).work();
        }else if(e instanceof Manager){
            ((Manager) e).manage();
        }else{

        }
    }
}
